package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 周生产日历
 * </p>
 *
 * @author XUQI
 * @since 2019-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_otd_week_calendar")
@ApiModel(value = "OtdWeekCalendar对象", description = "周生产日历")
public class OtdWeekCalendar implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "周生产日历ID")
    @TableId(value = "CALENDAR_ID", type = IdType.UUID)
    private String calendarId;

    @ApiModelProperty(value = "年")
    @TableField("YEAR")
    private String year;

    @ApiModelProperty(value = "月")
    @TableField("MONTH")
    private String month;

    @ApiModelProperty(value = "周")
    @TableField("WEEK")
    private String week;

    @ApiModelProperty(value = "开始时间")
    @TableField("START_DATE")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @TableField("END_DATE")
    private Date endDate;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value="CREATE_DATE",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "最后修改人")
    @TableField(value="UPDATE_BY",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value="UPDATE_DATE",fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    @Version
    @ApiModelProperty(value = "版本号")
    @TableField("VERSION")
    private Integer version = 0;

    @ApiModelProperty(value = "接口传送标识")
    @TableField("IS_SEND")
    private Integer isSend = 0;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel = 0;


}
